/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.ekaaty.controller;

import javax.faces.model.DataModel;

/**
 *Classe genérica dos Controladores
 * @author otavio
 */
public abstract class GenericController<T> {

    protected T bean;
    protected DataModel data;

    public abstract DataModel getTodos() throws Exception;

    public abstract void update();

    public abstract T initBean();

    public abstract void selecionado();

    public abstract void salvar();

    public abstract void excluir();

    public abstract void limpar();

    public T getBean() {
        return bean;
    }

    public void setBean(T bean) {
        this.bean = bean;
    }

    public DataModel getData() {
        return data;
    }

    public void setData(DataModel data) {
        this.data = data;
    }
}
